import 'package:testlzhu/generated/json/base/json_convert_content.dart';
import 'package:testlzhu/bean/test_list_entity.dart';

TestListEntity $TestListEntityFromJson(Map<String, dynamic> json) {
	final TestListEntity testListEntity = TestListEntity();
	final double? accountStatus = jsonConvert.convert<double>(json['accountStatus']);
	if (accountStatus != null) {
		testListEntity.accountStatus = accountStatus;
	}
	final String? addType = jsonConvert.convert<String>(json['addType']);
	if (addType != null) {
		testListEntity.addType = addType;
	}
	final String? addUser = jsonConvert.convert<String>(json['addUser']);
	if (addUser != null) {
		testListEntity.addUser = addUser;
	}
	final String? address = jsonConvert.convert<String>(json['address']);
	if (address != null) {
		testListEntity.address = address;
	}
	final double? addtime = jsonConvert.convert<double>(json['addtime']);
	if (addtime != null) {
		testListEntity.addtime = addtime;
	}
	final String? adminName = jsonConvert.convert<String>(json['adminName']);
	if (adminName != null) {
		testListEntity.adminName = adminName;
	}
	final String? adminPhone = jsonConvert.convert<String>(json['adminPhone']);
	if (adminPhone != null) {
		testListEntity.adminPhone = adminPhone;
	}
	final double? adminUid = jsonConvert.convert<double>(json['adminUid']);
	if (adminUid != null) {
		testListEntity.adminUid = adminUid;
	}
	final String? builder = jsonConvert.convert<String>(json['builder']);
	if (builder != null) {
		testListEntity.builder = builder;
	}
	final String? buildingHeight = jsonConvert.convert<String>(json['buildingHeight']);
	if (buildingHeight != null) {
		testListEntity.buildingHeight = buildingHeight;
	}
	final String? chargeName = jsonConvert.convert<String>(json['chargeName']);
	if (chargeName != null) {
		testListEntity.chargeName = chargeName;
	}
	final String? city = jsonConvert.convert<String>(json['city']);
	if (city != null) {
		testListEntity.city = city;
	}
	final double? cityid = jsonConvert.convert<double>(json['cityid']);
	if (cityid != null) {
		testListEntity.cityid = cityid;
	}
	final String? contractor = jsonConvert.convert<String>(json['contractor']);
	if (contractor != null) {
		testListEntity.contractor = contractor;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		testListEntity.createTime = createTime;
	}
	final List<TestListDeviceList>? deviceList = jsonConvert.convertListNotNull<TestListDeviceList>(json['deviceList']);
	if (deviceList != null) {
		testListEntity.deviceList = deviceList;
	}
	final String? district = jsonConvert.convert<String>(json['district']);
	if (district != null) {
		testListEntity.district = district;
	}
	final double? districtid = jsonConvert.convert<double>(json['districtid']);
	if (districtid != null) {
		testListEntity.districtid = districtid;
	}
	final double? edittime = jsonConvert.convert<double>(json['edittime']);
	if (edittime != null) {
		testListEntity.edittime = edittime;
	}
	final bool? experienceSite = jsonConvert.convert<bool>(json['experienceSite']);
	if (experienceSite != null) {
		testListEntity.experienceSite = experienceSite;
	}
	final String? fenceId = jsonConvert.convert<String>(json['fenceId']);
	if (fenceId != null) {
		testListEntity.fenceId = fenceId;
	}
	final double? flowAmount = jsonConvert.convert<double>(json['flowAmount']);
	if (flowAmount != null) {
		testListEntity.flowAmount = flowAmount;
	}
	final String? flowAmountCN = jsonConvert.convert<String>(json['flowAmountCN']);
	if (flowAmountCN != null) {
		testListEntity.flowAmountCN = flowAmountCN;
	}
	final String? hkRegionCode = jsonConvert.convert<String>(json['hkRegionCode']);
	if (hkRegionCode != null) {
		testListEntity.hkRegionCode = hkRegionCode;
	}
	final double? id = jsonConvert.convert<double>(json['id']);
	if (id != null) {
		testListEntity.id = id;
	}
	final double? insureRenewal = jsonConvert.convert<double>(json['insureRenewal']);
	if (insureRenewal != null) {
		testListEntity.insureRenewal = insureRenewal;
	}
	final double? insureSafe = jsonConvert.convert<double>(json['insureSafe']);
	if (insureSafe != null) {
		testListEntity.insureSafe = insureSafe;
	}
	final double? insureType = jsonConvert.convert<double>(json['insureType']);
	if (insureType != null) {
		testListEntity.insureType = insureType;
	}
	final double? isbuild = jsonConvert.convert<double>(json['isbuild']);
	if (isbuild != null) {
		testListEntity.isbuild = isbuild;
	}
	final double? isdel = jsonConvert.convert<double>(json['isdel']);
	if (isdel != null) {
		testListEntity.isdel = isdel;
	}
	final String? latitude = jsonConvert.convert<String>(json['latitude']);
	if (latitude != null) {
		testListEntity.latitude = latitude;
	}
	final String? longitude = jsonConvert.convert<String>(json['longitude']);
	if (longitude != null) {
		testListEntity.longitude = longitude;
	}
	final String? owner = jsonConvert.convert<String>(json['owner']);
	if (owner != null) {
		testListEntity.owner = owner;
	}
	final String? province = jsonConvert.convert<String>(json['province']);
	if (province != null) {
		testListEntity.province = province;
	}
	final double? provinceid = jsonConvert.convert<double>(json['provinceid']);
	if (provinceid != null) {
		testListEntity.provinceid = provinceid;
	}
	final double? relaterCount = jsonConvert.convert<double>(json['relaterCount']);
	if (relaterCount != null) {
		testListEntity.relaterCount = relaterCount;
	}
	final double? relaterType = jsonConvert.convert<double>(json['relaterType']);
	if (relaterType != null) {
		testListEntity.relaterType = relaterType;
	}
	final String? siteHeader = jsonConvert.convert<String>(json['siteHeader']);
	if (siteHeader != null) {
		testListEntity.siteHeader = siteHeader;
	}
	final String? siteName = jsonConvert.convert<String>(json['siteName']);
	if (siteName != null) {
		testListEntity.siteName = siteName;
	}
	final double? siteRelaterType = jsonConvert.convert<double>(json['siteRelaterType']);
	if (siteRelaterType != null) {
		testListEntity.siteRelaterType = siteRelaterType;
	}
	final double? siteStatus = jsonConvert.convert<double>(json['siteStatus']);
	if (siteStatus != null) {
		testListEntity.siteStatus = siteStatus;
	}
	final String? siteType = jsonConvert.convert<String>(json['siteType']);
	if (siteType != null) {
		testListEntity.siteType = siteType;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		testListEntity.updateTime = updateTime;
	}
	final double? useFlowMonth = jsonConvert.convert<double>(json['useFlowMonth']);
	if (useFlowMonth != null) {
		testListEntity.useFlowMonth = useFlowMonth;
	}
	final String? useFlowMonthCN = jsonConvert.convert<String>(json['useFlowMonthCN']);
	if (useFlowMonthCN != null) {
		testListEntity.useFlowMonthCN = useFlowMonthCN;
	}
	final String? vertexes = jsonConvert.convert<String>(json['vertexes']);
	if (vertexes != null) {
		testListEntity.vertexes = vertexes;
	}
	return testListEntity;
}

Map<String, dynamic> $TestListEntityToJson(TestListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['accountStatus'] = entity.accountStatus;
	data['addType'] = entity.addType;
	data['addUser'] = entity.addUser;
	data['address'] = entity.address;
	data['addtime'] = entity.addtime;
	data['adminName'] = entity.adminName;
	data['adminPhone'] = entity.adminPhone;
	data['adminUid'] = entity.adminUid;
	data['builder'] = entity.builder;
	data['buildingHeight'] = entity.buildingHeight;
	data['chargeName'] = entity.chargeName;
	data['city'] = entity.city;
	data['cityid'] = entity.cityid;
	data['contractor'] = entity.contractor;
	data['createTime'] = entity.createTime;
	data['deviceList'] =  entity.deviceList?.map((v) => v.toJson()).toList();
	data['district'] = entity.district;
	data['districtid'] = entity.districtid;
	data['edittime'] = entity.edittime;
	data['experienceSite'] = entity.experienceSite;
	data['fenceId'] = entity.fenceId;
	data['flowAmount'] = entity.flowAmount;
	data['flowAmountCN'] = entity.flowAmountCN;
	data['hkRegionCode'] = entity.hkRegionCode;
	data['id'] = entity.id;
	data['insureRenewal'] = entity.insureRenewal;
	data['insureSafe'] = entity.insureSafe;
	data['insureType'] = entity.insureType;
	data['isbuild'] = entity.isbuild;
	data['isdel'] = entity.isdel;
	data['latitude'] = entity.latitude;
	data['longitude'] = entity.longitude;
	data['owner'] = entity.owner;
	data['province'] = entity.province;
	data['provinceid'] = entity.provinceid;
	data['relaterCount'] = entity.relaterCount;
	data['relaterType'] = entity.relaterType;
	data['siteHeader'] = entity.siteHeader;
	data['siteName'] = entity.siteName;
	data['siteRelaterType'] = entity.siteRelaterType;
	data['siteStatus'] = entity.siteStatus;
	data['siteType'] = entity.siteType;
	data['updateTime'] = entity.updateTime;
	data['useFlowMonth'] = entity.useFlowMonth;
	data['useFlowMonthCN'] = entity.useFlowMonthCN;
	data['vertexes'] = entity.vertexes;
	return data;
}

TestListDeviceList $TestListDeviceListFromJson(Map<String, dynamic> json) {
	final TestListDeviceList testListDeviceList = TestListDeviceList();
	final String? deviceType = jsonConvert.convert<String>(json['deviceType']);
	if (deviceType != null) {
		testListDeviceList.deviceType = deviceType;
	}
	final String? deviceName = jsonConvert.convert<String>(json['deviceName']);
	if (deviceName != null) {
		testListDeviceList.deviceName = deviceName;
	}
	final double? onLineNum = jsonConvert.convert<double>(json['onLineNum']);
	if (onLineNum != null) {
		testListDeviceList.onLineNum = onLineNum;
	}
	final double? offLineNum = jsonConvert.convert<double>(json['offLineNum']);
	if (offLineNum != null) {
		testListDeviceList.offLineNum = offLineNum;
	}
	final double? unusualNum = jsonConvert.convert<double>(json['unusualNum']);
	if (unusualNum != null) {
		testListDeviceList.unusualNum = unusualNum;
	}
	return testListDeviceList;
}

Map<String, dynamic> $TestListDeviceListToJson(TestListDeviceList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['deviceType'] = entity.deviceType;
	data['deviceName'] = entity.deviceName;
	data['onLineNum'] = entity.onLineNum;
	data['offLineNum'] = entity.offLineNum;
	data['unusualNum'] = entity.unusualNum;
	return data;
}